package main

import (
	"time"

	"gitee.com/dark.H/go-utils/s"
)

func main() {

	cc := s.Str("whoami").AsCmd().Cd("..").Cd("cmd_process").ExecDaemon("cmd_process.exe", "log.txt")
	s.IfErrWillFatal()
	for {
		time.Sleep(2 * time.Second)
		tmp := s.Str("")
		cc.RunningStatus().Each(func(k s.Str, v bool) {
			tmp += s.Sprintf("%s \t-\t %v\n", k, v)
		})
		// tmp.StatusBar("Running status:")

	}

}
